+2004-05-11 Michael Natterer <mitch@gimp.org>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup)
+ (gtk_combo_box_menu_button_press): don't allocate the popup
+ smaller than the combobox. Fixes bug #59660.
+
2004-05-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+2004-05-11 Michael Natterer <mitch@gimp.org>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup)
+ (gtk_combo_box_menu_button_press): don't allocate the popup
+ smaller than the combobox. Fixes bug #59660.
+
2004-05-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+2004-05-11 Michael Natterer <mitch@gimp.org>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup)
+ (gtk_combo_box_menu_button_press): don't allocate the popup
+ smaller than the combobox. Fixes bug #59660.
+
2004-05-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+2004-05-11 Michael Natterer <mitch@gimp.org>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_popup)
+ (gtk_combo_box_menu_button_press): don't allocate the popup
+ smaller than the combobox. Fixes bug #59660.
+
2004-05-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
if (combo_box->priv->wrap_width == 0)
{
+ GtkRequisition requisition;
+
width = GTK_WIDGET (combo_box)->allocation.width;
- gtk_widget_set_size_request (combo_box->priv->popup_widget, width, -1);
+ gtk_widget_size_request (combo_box->priv->popup_widget, &requisition);
+
+ gtk_widget_set_size_request (combo_box->priv->popup_widget,
+ MAX (width, requisition.width), -1);
}
gtk_menu_popup (GTK_MENU (combo_box->priv->popup_widget),
gpointer user_data)
{
GtkComboBox *combo_box = GTK_COMBO_BOX (user_data);
- gint width;
if (! GTK_IS_MENU (combo_box->priv->popup_widget))
return FALSE;
if (combo_box->priv->wrap_width == 0)
{
+ GtkRequisition requisition;
+ gint width;
+
width = GTK_WIDGET (combo_box)->allocation.width;
- gtk_widget_set_size_request (combo_box->priv->popup_widget, width, -1);
+ gtk_widget_size_request (combo_box->priv->popup_widget, &requisition);
+
+ gtk_widget_set_size_request (combo_box->priv->popup_widget,
+ MAX (width, requisition.width), -1);
}
gtk_menu_popup (GTK_MENU (combo_box->priv->popup_widget),